<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content=""><!--SEO关键字-->
<meta name="description" content=""><!--SEO描述-->
<link rel ="" href=""><!--选项卡图标-->
<title></title>
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/common.css">
<link rel="stylesheet" href="/css/style.css">
<script src="/js/jquery-1.7.2.min.js"></script>
<script src="/js/script.js"></script>
<script src="/js/responsiveslides.min.js"></script>
<!--[if ie 6]>
<link rel="stylesheet" href="css/ie6.css">
<script type="text/javascript" src="js/DD_belatedPNG.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png');/*在需要png透明的元素里面加上.png样式即可（class="png"）*/
</script>
<![endif]-->
</head>

<body class="bg_img">
	<div class="header h100 w960 bc"><?php head();?></div>
	<div class="w960 bc">
		<form method="POST" class="address_form">
		<div class="register_wraps w960 common_bg">
			<div class="cart_from_wrap oh">
				<p class="step f14 tc dib fl"><span class="f20 fb">1</span>购物车结算</p>
				<p class="step f14 tc dib fl" id="step_hover"><span class="f20 fb">2</span>填写订单信息</p>
				<p class="step f14 tc dib fl"><span class="f20 fb">3</span>支付/确定订单</p>
			</div>
			<div class="cart_from_wrap oh mt20">
				<div class="common_bg f14" style="padding:20px;background-color:#fff!important;">
					<p class="fb f16 c999">邮寄方式</p>
					<p class="c999 f12">
						<p><input type="radio" name="ex_chose" value="express" checked="checked">  快递：<?php echo EXPRESS;?>元</p>
						<p><input type="radio" name="ex_chose" value="ems">  EMS：<?php echo EMS;?>元</p>
						<p><input type="radio" name="ex_chose" value="post">  平邮：<?php echo POST;?>元</p>
					</p>
					<p class="fb f16 c999">收货人信息</p>
					<p class="c999 f12">此地址同时用于邮寄发票，请务必认真填写，发票在一个月内寄出。</p><br>
					<?php
					for($x=0;$x < count($address);$x++){
						 if($x == 0){?>
						<input type="radio" name="address_chose" class="new_address" value="<?php echo $address[$x]['id'];?>" checked="checked">
						<?php }else{ ?>
						<input type="radio" name="address_chose" class="new_address" value="<?php echo $address[$x]['id'];?>">
						<?php
						} 
						echo $address[$x]['province'].$address[$x]['city'].$address[$x]['area'].$address[$x]['address'].'&nbsp;&nbsp;&nbsp;&nbsp;'.$address[$x]['addressee'].'&nbsp;&nbsp;&nbsp;&nbsp;'.$address[$x]['phone_number'];?><br />
					<?php }?>
					<input type="radio" name="address_chose" value="new" class="new_address"> 	新建收货地址<br />
					<div class="none" id="new_address">
					<p class="f14 c444">真实姓名 <span class="cred">*&nbsp;&nbsp;</span></br><input type="text" class="input_text login_input" name="true_name" value=""></p>
					<p class="f14 c444">地址 <span class="cred">*&nbsp;&nbsp;</span></br>
						<select name="province" id="province" class="address_Select">
							
						</select>
						<select name="city" id="city" class="address_Select">
							
						</select>
						<select name="area" id="area" class="address_Select">
							
						</select><br>
					
						<textarea name="address" id="UserAddress_address" style="color: rgb(204, 204, 204);">路名或街道地址，门牌号</textarea>
						
					</p>
					<p class="f14 c444">邮政编码 <span class="cred">*&nbsp;&nbsp;</span></br><input type="text" name="zip_code" class="input_text login_input" value="" maxlength="6"></p>
					<p class="f14 c444">联系电话 <span class="cred">*&nbsp;&nbsp;</span></br><input type="text" name="tel" class="input_text login_input" value=""><span class="error_text none">错误信息</span></p>
				</div>
				</div>
				
			</div>
		
			<div class="cart_from_wrap oh mt20">
				<table class="goods_cart_from">
					<tr>
						<th>商品名称</th>
						<th>价格</th>
						<th>数量</th>
						<th>小计</th>
					</tr>
					<?php
					for($n=0;$n< count($cart);$n++){
						$price = $cart[$n]['product_num']*$cart[$n]['info']['price'];
					?>
					<tr>
						<td><p class="goods_choice"><a href="#"><img src="<?php echo $cart[$n]['info']['path1']?>" width="70" height="80" alt="" class="fl"></a><a href="/goods/<?php echo $cart[$n]['info']['p_id']?>" class="fl no_url c999"><?php echo $cart[$n]['info']['name']?></a></p></td>
						<td>¥<span class="good_price"><?php echo $cart[$n]['info']['price']?></span></td>
						<td><?php echo $cart[$n]['product_num'];?></td>
						<td>¥<span class="total"><?php echo $price;?></span></td>
						<input type="hidden" class="cart_number" value="<?php echo $cart[$n]['id'];?>">
					</tr>
					<?php $pp+=$price;} ?>
					<tr>
						<td colspan="5" class="settle">
							<p class="fr fb f16 c777">商品金额合计：<span class="chot">¥</span><span class="chot cart_money"><?php echo $pp;?></span></p><br><br><br>
							<p><input type="submit" class="submit fr fb address_submit" value="立即下单" name="submit"><a href="/cart1" class="fr f14 no_url fb chot" style="margin:6px 20px 0 0;" >返回购物车</a></p>
						</td>
					</tr>
				</table>
			</div>
		</div><!-- register_wraps end -->
		</form>
		<div class="register_shadow w960 png"></div>
	</div>

	<a href="#"><div class="guarantee w960 bc mt20 png"></div></a><!-- guarantee end -->

	

	<?php footer();?>
</body>
</html>